package com.youlai.boot.system.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.*;

/**
 * 下载记录表单对象
 *
 * @author youlaitech
 * @since 2025-08-10 19:52
 */
@Getter
@Setter
@Schema(description = "下载记录表单对象")
public class LpsOrderDownloadForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "订单id")
    @NotNull(message = "订单id不能为空")
    private Long orderId;

    @Schema(description = "用户id")
    @NotNull(message = "用户id不能为空")
    private Long userId;

    @Schema(description = "用户名称")
    @Size(max=64, message="用户名称长度不能超过64个字符")
    private String userName;

    @Schema(description = "部门id")
    @NotNull(message = "部门id不能为空")
    private Long deptId;

    @Schema(description = "部门名称")
    @Size(max=64, message="部门名称长度不能超过64个字符")
    private String deptName;

    @Schema(description = "文件名称")
    @Size(max=64, message="文件名称长度不能超过64个字符")
    private String fileName;

    @Schema(description = "备注")
    @Size(max=65535, message="备注长度不能超过65535个字符")
    private String remark;

    @Schema(description = "下载标识(0-未下载 1-已下载)")
    private Integer isDownload;

    @Schema(description = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @Schema(description = "提醒时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime remindTime;

    @Schema(description = "下载时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime downloadTime;


}
